package main

import (
	"fmt"

	"time"
)

func main() {
	format := "2006-01-02 15:04:05 +0800 CST"
	xx, err := time.Parse(format, "2021-06-03 14:06:34 +0800 CST")
	if err != nil {
		fmt.Println("出错了", err.Error())
	}
	// Format("2006-01-02 15:04:05")
	unix := xx.Format("2006-01-02 15:04:05")
	fmt.Println(unix)
}
